using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Data.SQLite;

namespace DocLibApp
{
    public partial class FormTest : FormBase
    {
        public FormTest()
        {
            InitializeComponent();
            test();
        }

        private void test()
        {
        }

        #region test functions
        private void Test_DocDatabaseSetup()
        {
            string filename = @"mytestdatabase.data";

            doc_dbsetup mydbsetup = new doc_dbsetup(filename);
            ShowMessage(mydbsetup.SetupDatabase());
        }

        private void Test_WriteSystemLog()
        {
            string msg = "Test system log message.";
            string type = "SYSTEM";
            doc_system.WriteSystemLog(msg, type);
        }
        #endregion

        private void listView1_KeyUp(object sender, KeyEventArgs e)
        {
            if (e.KeyData == Keys.Delete)
            {
                if (sender is ListViewItem)
                {
                    listView1.Items.Remove(sender as ListViewItem);
                }
            }
        }
    }
}